﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>공사일지</title>
    <link href="CustomCss.css" rel="stylesheet" type="text/css" />
    <link href="resources/css/examples.css" rel="stylesheet" type="text/css" />
    <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
       
        //Layout 셋팅 -- start
        var template = '<span style="color:{0};">{1}</span>';
        var change = function (value) {
            return String.format(template, (value > 0) ? "green" : "red", value);
        };
       
        var pctChange = function (value) {
            return String.format(template, (value > 0) ? "green" : "red", value + "%");
        };
        //Layout 셋팅 -- End
       
        
        //EXCEL,XML EXPORT 공용
        var exportData = function (format) {
            FormatType.setValue(format);
            var store = GridPanel1.store;
            store.directEventConfig.isUpload = true;

            var records = store.reader.readRecords(store.proxy.data).records,
                values = [];
            
            for (i = 0; i < records.length; i++) {
                var obj = {}, dataR;
                
                if (store.reader.meta.id) {
                    obj[store.reader.meta.id] = records[i].id;
                }

                dataR = Ext.apply(obj, records[i].data);                
                
                if (!Ext.isEmptyObj(dataR)) {
                    values.push(dataR);
                }
            }
            
            store.submitData(values);

            store.directEventConfig.isUpload = false;
        };
        
        //인원현황 행 추가
            var addEmployee = function () {
            
                var grid = #{GridPanel1};
                var index =  #{Store2}.getCount();
                grid.stopEditing();
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    ACCUM : 0,
                    INPUT : 0,
                    PAY : 0
                });
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,4);
                grid.selModel.selectRow(index);
                grid.startEditing(index,4);
            }
        
        //인원현황 행 삭제    
            var removeEmployee = function () {
                var grid = #{GridPanel1};
                grid.stopEditing();
                
                var s = grid.getSelectionModel().getSelections();
                
                for (var i = 0, r; r = s[i]; i++) {
                    #{Store2}.remove(r);
                }
                
            }
            
            
         //주요자재현황 행 추가
            var addJaje = function () {
                var grid = #{GridPanel2};
                grid.stopEditing();
                var index =  #{Store4}.getCount();
                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    PAY : 0,
                    P_QTY : 0,	
                    IN_QTY : 0,	
                    A_USE_QTY : 0,
                    A_IN_QTY : 0,
                    USE_QTY : 0	,
                    REMAINDER : 0	
                });
                
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,4);
                grid.selModel.selectRow(index);
                grid.startEditing(index,4);
                
            }
        
        //주요자재현황 행 삭제    
            var removeJaje = function () {
                var grid = #{GridPanel2};
                grid.stopEditing();
                
                var s = grid.getSelectionModel().getSelections();
                
                for (var i = 0, r; r = s[i]; i++) {
                    #{Store4}.remove(r);
                }
                
            }
        
        //GRID CELL 데이터 변경후 이벤트 (공용)    
           var afterEdit = function (e) {
            /*
            Properties of 'e' include:
                e.grid - This grid
                e.record - The record being edited
                e.field - The field name being edited
                e.value - The value being set
                e.originalValue - The original value for the field, before the edit.
                e.row - The grid row index
                e.column - The grid column index
            */
            
            // Call DirectMethod
            //CompanyX.AfterEdit(e.record.data.ID, e.field, e.originalValue, e.value, e.record.data);
        };
        
        var showResult = function (btn) {
            //Ext.Msg.notify("알림", btn);
        };

        var showResultText = function (btn, text) {
            //Ext.Msg.notify("알림",  btn );
        };
        
        var showResultYesno = function (btn) {   
        if(btn == "yes")
        {      
         Ext.net.DirectMethods.CreateNewDiaryForProj(document.getElementById("hdnPROJ_CD").value ,document.getElementById("hdnDT").value ,{
                success: function (result) {
                 #{ListView1}.getStore().reload();
                   Ext.Msg.notify("완료",  result  );
                }
            });
         

         }
           
        };
        
        var showResultYesnoD = function (btn) {
        if(btn == "yes")
        {
        
            Ext.net.DirectMethods.DeleteDiaryForProj(document.getElementById("hdnPROJ_CD").value ,document.getElementById("hdnDT").value ,{
                success: function (result) {
                 #{ListView1}.getStore().reload();
                   Ext.Msg.notify("완료",  result  );
                }
            });
            
         }
           
        };
        
        
        
        
         function nodeLoad(node) {
            Ext.net.DirectMethods.NodeLoad(node.id,document.getElementById('hdnJm').value, {
                success: function (result) {
                    var data = eval("(" + result + ")");
                    node.loadNodes(data);
                },

                failure: function (errorMsg) {
                    Ext.Msg.alert('Failure', errorMsg);
                }
            });            
        }

        
        //콤보박스 (업무)
       var orderRenderer = function (value, metadata, record) {
           var r = Store3.getById(value);
                if (Ext.isEmpty(r)) {
                    return value;
                }
                return r.data.LCODENM;
        }
        
        
       //콤보박스 (거래처- 주요자재, 장비연황) --  공용으로 처리
       var cbxRenderEqp = function (value, metadata, record) {
           var r =  StrBiz.getById(value);
                if (Ext.isEmpty(r)) {
                    return value;
                }
                return r.data.COMP_NM;
        }
        
       //콤보박스 (자재/수목)
       var cbxRenderItem = function (value, metadata, record) {
           var r =  StrItemGubun.getById(value);
                if (Ext.isEmpty(r)) {
                    return value;
                }
                return r.data.NAME;
        }
        
        //콤보박스 (관련증빙)
       var cbxRenderProof = function (value, metadata, record) {
           var r =  StrProof.getById(value);
                if (Ext.isEmpty(r)) {
                    return value;
                }
                return r.data.LCODENM;
        }
        
        //콤보박스 공용
        var onBeforeStartEdit = function (editor, boundEl, value) {
            //editor.field.store.loadData(editor.record.data.NAME);
        }
        
        
        var getColor = function(color) {
            var s = "background-color: ";
            switch (color) {
                case "r": s += "red;"; break;
                case "g": s += "green;"; break;
                case "b": s += "blue;"; break;
                case "w": s += "transport;"; break;
                default: s += "transport;"
            }
            return s;
        }
        
        function getRowClass(record) {
                if (record.data.IN_SUM_QTY < record.data.USE_SUM_QTY) {
                    return 'tomato';
                }
                else  {
                    return 'white';
                }
            }
            
       function getRowKongClass(record) {
                if (record.data.QTY  < record.data.SUM_QTY) {
                    return 'tomato';
                }
                else  {
                    return 'white';
                }
            }
        
        var updateTotal = function (grid) {
            var fbar = grid.getBottomToolbar(),
                column,
                field,
                width,
                data = {},
                c,
                cs = grid.view.getColumnData();
                 
            for (var j = 0, jlen = grid.store.getCount(); j < jlen; j++) {
                var r = grid.store.getAt(j);
                
                for (var i = 0, len = cs.length; i < len; i++) {
                    c = cs[i];
                    column = grid.getColumnModel().columns[i];
 
                    if (column.summaryType) {
                        data[c.name] = Ext.grid.GroupSummary.Calculations[column.summaryType](data[c.name] || 0, r, c.name, data);
                    }
                }
            }
            
            
            if(fbar != null && fbar != 'undefined')
            {
                 
            for (var i=0; i < grid.getColumnModel().columns.length; i++) {
                column = grid.getColumnModel().columns[i];                  
                if (column.dataIndex != grid.store.groupField) {
                    field = fbar.findBy(function (item) {
                        return item.dataIndex === column.dataIndex;
                    })[0];
                    
                    
                   if(field == null || field=="undefined")
                   {
                   continue;
                   }
                   
                   if(column.hidden==true)
                   {
                    fbar.remove(field, true);
                   }
                   
                   else if(column.groupName  == "noSum") 
                    {
                    c = cs[i];
                    fbar.remove(field, false);
                    fbar.insert(i, field);
                    width = grid.getColumnModel().getColumnWidth(i);
                    field.setWidth(width-5);  
                    }
                    else
                    {
                    
                    c = cs[i];
                   
                    
                    fbar.remove(field, false);
                    fbar.insert(i, field);
                    width = grid.getColumnModel().getColumnWidth(i);
                    field.setWidth(width-5); 
                    field.setValue((column.summaryRenderer || c.renderer)(data[c.name], {}, {}, 0, i, grid.store));
                   
                    }
                }
            }            
             
            fbar.doLayout();
            
            }
        }
        
        var readonlycolorRenderer = function (value, metadata, record, rowIndex, colIndex, store) {
            if (store.colorColIndex === colIndex) {
                metadata.style = "background-color:lightgray ;";
            }
            return value;
        };
        
//        
//        var showResult = function (projcd,dt) {
//        
//         Ext.net.DirectMethods.CreateNewDiaryForProj(projcd,dt,{
//                success: function (result) {
//                   Ext.Msg.notify("완료",  result  );
//                }
//            });
//           
//        };

         var deleteDiaryForProj = function (param) {
         Ext.net.DirectMethods.DeleteDiaryForProj(document.getElementById("hdnPROJ_CD").value,param,{
                success: function (result) {
                   #{ListView1}.getStore().reload();
                   Ext.Msg.notify("완료",  result  );
                }
            });
           
        };
        
        
        //////////////////////////////////////////장비관련 script start//////////////////////////////////////////
        var addEqp = function () {
                var grid = #{grdPnlEqp};
                grid.stopEditing();
                var index =  #{StrEqp}.getCount();
                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                });
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,2);
                grid.selModel.selectRow(index);
                grid.startEditing(index,2);
            }
            
        var removeEqp = function () {
            var grid = #{grdPnlEqp};
            //grid.getRowEditor().stopEditing();
            
            var s = grid.getSelectionModel().getSelections();
            
            for (var i = 0, r; r = s[i]; i++) {
                #{StrEqp}.remove(r);
            }
        }
        
       
        
        
        
        var eqpInputChange = function()
        {
            //alert(document.getElementById("nfInput").value);

        }
        //////////////////////////////////////////장비관련 script end//////////////////////////////////////////
        
        
        
        
        ///////////////////운송현황 관련 script start///////////////////////////////////
        var addTrans = function () {
                var grid = #{grdPnlTrans};
                grid.stopEditing();
                var index =  #{StrTrans}.getCount();
                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                });
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,2);
                grid.selModel.selectRow(index);
                grid.startEditing(index,2);
            }
            
        var removeTrans = function () {
            var grid = #{grdPnlTrans};
            grid.stopEditing();
            
            var s = grid.getSelectionModel().getSelections();
            
            for (var i = 0, r; r = s[i]; i++) {
                #{StrTrans}.remove(r);
            }
        }
        ///////////////////운송현황 관련 script end///////////////////////////////////
        
        
           ///////////////////경비현황 관련 script start///////////////////////////////////
        var AddGB = function () {
                var grid = #{GridPanel3};
                grid.stopEditing();
                var index =  #{Store5}.getCount();
                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                });
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,2);
                grid.selModel.selectRow(index);
                grid.startEditing(index,2);
            }
            
        var RemoveGB = function () {
            var grid = #{GridPanel3};
            grid.stopEditing();
            
            var s = grid.getSelectionModel().getSelections();
            
            for (var i = 0, r; r = s[i]; i++) {
                #{Store5}.remove(r);
            }
        }
        ///////////////////경비현황 관련 script end///////////////////////////////////
        
        
        
         ///////////////////외주관리 관련 script start///////////////////////////////////
        var AddOI = function () {
                var grid = #{GridPanel5};
                grid.stopEditing();
                var index =  #{Store7}.getCount();
                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    ITEM_NO : '0' ,
                });
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,2);
                grid.selModel.selectRow(index);
                grid.startEditing(index,2);
            }
            
        var RemoveOI = function () {
            var grid = #{GridPanel5};
            grid.stopEditing();
            
            var s = grid.getSelectionModel().getSelections();
            
            for (var i = 0, r; r = s[i]; i++) {
                #{Store7}.remove(r);
            }
        }
        
        
        var AddOI2 = function () {
                var grid = #{GridPanel6};
                grid.stopEditing();
                var index =  #{Store8}.getCount();
               var seqno =hdnOISEQ_NO.Value;
               
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    SEQ_NO : seqno,
                    ITEM_NO : '-1' 
                });
                
                grid.getView().focusRow(index);
                grid.getView().focusCell(index,2);
                grid.selModel.selectRow(index);
                grid.startEditing(index,2);
            }
            
        var RemoveOI2 = function () {
            var grid = #{GridPanel6};
            grid.stopEditing();
            
            var s = grid.getSelectionModel().getSelections();
            
            for (var i = 0, r; r = s[i]; i++) {
                #{Store8}.remove(r);
            }
        }
        ///////////////////외주관리 관련 script end///////////////////////////////////


        //////////////////////////popup 관련 script start///////////////////////////////////
        //인원현황 - 팝업항목추가
        function SelectAddPeople(val) {
            var arrVal = val.split('|');
        
            var grid = #{GridPanel1};
            var index =  #{Store2}.getCount();
            grid.stopEditing();
            
            grid.insertRecord(index, {
                PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                DT  :document.getElementById("hdnDT").value ,
                GUBUN   :  arrVal[3],
                NAME  :arrVal[3] ,
                ID : arrVal[0],
                ID_NM : arrVal[1],
                PAY : arrVal[9],
                ACCUM : 0,
                INPUT : 0
            });
            
            grid.getView().focusRow(index);
                grid.getView().focusCell(index,4);
                grid.selModel.selectRow(index);
                //grid.startEditing(index,4);
            
        }
        
        
        //자재현황 - 팝업항목추가
        function SelectAddMat(val, popGubun) {
            var arrVal = val.split('|');
            var grid = #{GridPanel2};
                grid.stopEditing();
                var index =  #{Store4}.getCount();
            
            if(popGubun == "1")
            {                
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[0],
                    ITEM_GUBUN  :arrVal[2] ,
                    CD : arrVal[3],
                    NAME : arrVal[4],
                    SPEC : arrVal[5],
                    UNIT : arrVal[6],
                    P_QTY : 0,
                    A_IN_QTY : 0,
                    IN_QTY : 0,
                    A_USE_QTY : 0,
                    USE_QTY : 0,
                    PAY : 0,
                    REMAINDER : 0
                });
            }
            else if(popGubun == "2")
            {
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[1],
                    CD : arrVal[2],
                    NAME : arrVal[8],
                    SPEC : arrVal[9],
                    UNIT : arrVal[6],
                    PAY : Number(arrVal[5]),
                    P_QTY : 0,
                    A_IN_QTY : 0,
                    IN_QTY : 0,
                    A_USE_QTY : 0,
                    USE_QTY : 0,
                    REMAINDER : 0
                });
            }
            else if(popGubun == "3")
            {                
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[0],
                    CD : arrVal[1],
                    NAME : arrVal[2],
                    SPEC : arrVal[3],
                    UNIT : arrVal[4],
                    PAY : Number(arrVal[5]),
                    P_QTY : 0,
                    A_IN_QTY : 0,
                    IN_QTY : 0,
                    A_USE_QTY : 0,
                    USE_QTY : 0,
                    REMAINDER : 0
                });
            }
            else if(popGubun == "4")
            {//세양안씀 추후 수정
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[1],
                    CD : arrVal[3],
                    NAME : arrVal[4],
                    SPEC : arrVal[5],
                    UNIT : arrVal[6],
                    PAY : arrVal[7]
                });
            }
            
            
            
            grid.getView().focusRow(index);
                grid.getView().focusCell(index,3);
                grid.selModel.selectRow(index);
                //grid.startEditing(index,4);
        }
        
        
        //장비현황 - 팝업항목추가
         function SelectAddEqp(val, popGubun) {
            var arrVal = val.split('|');
            var grid = #{grdPnlEqp};
                grid.stopEditing();
                var index =  #{StrEqp}.getCount();
            
            if(popGubun == "1")
            {
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[0],
                    NAME  :arrVal[1],
                    EQUIP_KIND : Number(arrVal[2]),
                    EQUIP_CD : Number(arrVal[3]),
                    NAME : arrVal[5],
                    SPEC : arrVal[6],
                    UNIT : arrVal[7],
                    PRE_INPUT : parseFloat(arrVal[8]),
                    PRE_TO_INPUT : parseFloat(arrVal[8])
                });
            }
            else if(popGubun == "2")
            {//alert(arrVal[0] + "    " + arrVal[1] + "    " + arrVal[2] + "    " + arrVal[3] + "    " + arrVal[4] + "    " + arrVal[5] + "    " + arrVal[6]);
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value,
                    DT  :document.getElementById("hdnDT").value,
                    BIZ_REGNO   :  arrVal[0],
                    NAME  :arrVal[3],
                    EQUIP_CD  : Number(arrVal[2]),
                    EQUIP_KIND : Number(arrVal[1]),
                    SPEC : arrVal[4],
                    UNIT : arrVal[5]
                });
            }
            
            grid.getView().focusRow(index);
                grid.getView().focusCell(index,4);
                grid.selModel.selectRow(index);
                //grid.startEditing(index,4);
        }
        
        
        
        //운송현황 - 팝업항목추가
        function SelectAddTrans(val, popGubun) {
            var arrVal = val.split('|');
            var grid = #{grdPnlTrans};
                grid.stopEditing();
                var index =  #{StrTrans}.getCount();
            
            if(popGubun == "1")
            {                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[0],
                    EQUIP_KIND   :  arrVal[2],
                    EQUIP_CD  :arrVal[3],
                    NAME2 : arrVal[4],
                    CAR_NUM : arrVal[5],
                    NAME : arrVal[6],
                    STANDARD : arrVal[7],
                    STDCOUNT : Number(arrVal[8])
                });
            }
            else if(popGubun == "2")
            {                
                grid.insertRecord(index, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value,
                    DT  :document.getElementById("hdnDT").value,
                    BIZ_REGNO   :  arrVal[0],
                    EQUIP_CD  :arrVal[2],
                    EQUIP_KIND : arrVal[1],
                    NAME : arrVal[3],
                    SPEC : arrVal[4],
                    UNIT : arrVal[5]
                });
            }
            
            grid.getView().focusRow(index);
                grid.getView().focusCell(index,4);
                grid.selModel.selectRow(index);
                //grid.startEditing(index,4);
            
        }
        
        
        //외주현황 - 팝업항목추가
        function SelectAddOutSourcing(val, popGubun) {
            var arrVal = val.split('|');
            var grid = #{GridPanel5};
                grid.getRowEditor().stopEditing();
                var index =  #{Store7}.getCount();
            
            if(popGubun == "1")
            {
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value ,
                    DT  :document.getElementById("hdnDT").value ,
                    BIZ_REGNO   :  arrVal[20],
                    ITEM_NO   :  arrVal[4],
                    ITEM_NM  :arrVal[6],
                    PRICE : Number(arrVal[10]),
                    SPEC : arrVal[7],
                    UNIT : arrVal[8],
                    QTY : Number(arrVal[9]),
                    QTY_PRICE : Number(arrVal[11]),
                    REMARK : arrVal[17]
                });
            }
            else if(popGubun == "2")
            {                
                grid.insertRecord(0, {
                    PROJ_CD   : document.getElementById("hdnPROJ_CD").value,
                    DT  :document.getElementById("hdnDT").value,
                    BIZ_REGNO   :  arrVal[0],
                    EQUIP_CD  :arrVal[2],
                    EQUIP_KIND : arrVal[1],
                    NAME : arrVal[3],
                    SPEC : arrVal[4],
                    UNIT : arrVal[5]
                });
            }
            
            grid.getView().refresh();
            grid.getView().focusRow(index);
            grid.getSelectionModel().selectRow(index);
            grid.getRowEditor().startEditing(index);
        }
        //////////////////////////popup 관련 script end///////////////////////////////////
       
        </script>
    </ext:XScript>
</head>
<body>
    <form id="Form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Store ID="Store3" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="CODE">
                <Fields>
                    <ext:RecordField Name="CODE" />
                    <ext:RecordField Name="LCODENM" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="StrBiz" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="BIZ_REGNO">
                <Fields>
                    <ext:RecordField Name="BIZ_REGNO" />
                    <ext:RecordField Name="COMP_NM" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="StrProof" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="CODE">
                <Fields>
                    <ext:RecordField Name="CODE" />
                    <ext:RecordField Name="LCODENM" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="StrItemGubun" runat="server">
        <Reader>
            <ext:JsonReader IDProperty="CODE">
                <Fields>
                    <ext:RecordField Name="CODE" />
                    <ext:RecordField Name="NAME" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Hidden ID="FormatType" runat="server" />
    <ext:Viewport ID="Viewport1" runat="server" StyleSpec="background-color: transparent;">
        <Items>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <North>
                    <ext:Toolbar ID="Toolbar9" runat="server" Height="28">
                        <Items>
                            <ext:Button ID="btnProjMain" runat="server" Text="작업할 프로젝트를 선택해주세요." Icon="ApplicationHome"
                                ToolTip="클릭하여 다른 현장을 선택할 수 있습니다.">
                                <DirectEvents>
                                    <Click OnEvent="btnProjMain_Click">
                                        <EventMask ShowMask="true" Msg="프로젝트 목록을 만들고 있습니다..." MinDelay="50" />
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:ToolbarFill ID="ToolbarFill9" runat="server" />
                            <ext:Button ID="btnConfirmView" runat="server" Text="수정요청조회" Icon="TableConnect">
                                <DirectEvents>
                                    <Click OnEvent="btnChoiceAdd_Click">
                                    </Click>
                                </DirectEvents>
                            </ext:Button>
                            <ext:Button ID="btnLoginSate" runat="server" Text="로그인" Icon="User">
                                <Listeners>
                                    <Click Handler="#{Window10}.show();" />
                                </Listeners>
                            </ext:Button>
                            <ext:Label ID="lblMessage" runat="server" />
                        </Items>
                    </ext:Toolbar>
                </North>
                <West Collapsible="true" Split="true" MinWidth="90" MaxWidth="400" MarginsSummary="5 0 5 5"
                    CMarginsSummary="31 5 5 5">
                    <ext:Panel runat="server" Title="작성일자 목록" ID="pnlSettings" AutoScroll="true" StyleSpec="width:170px;height:100%">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar4" runat="server">
                                <Items>
                                    <ext:ToolbarFill ID="ToolbarFill6" runat="server" />
                                    <ext:Button ID="Button13" runat="server" Text="추가" Icon="Add">
                                        <Listeners>
                                            <Click Handler="DateField1.setValue(new Date());#{Window3}.show();" />
                                        </Listeners>
                                    </ext:Button>
                                    <ext:Button ID="Button22" runat="server" Text="삭제" Icon="Delete">
                                        <DirectEvents>
                                            <Click OnEvent="DeleteDiaryForProj">
                                                <ExtraParams>
                                                    <ext:Parameter Name="Values" Value="Ext.encode(#{ListView1}.getRowsValues({ selectedOnly : true }))"
                                                        Mode="Raw" />
                                                </ExtraParams>
                                            </Click>
                                        </DirectEvents>
                                        <%-- <Listeners>
                                            <Click Handler="deleteDiaryForProj(Ext.encode(#{ListView1}.getRowsValues({ selectedOnly : true })));" />
                                        </Listeners>--%>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Items>
                            <ext:ListView ID="ListView1" runat="server" MultiSelect="true" ReserveScrollOffset="true"
                                EmptyText="" Selectable="true" Cls="my-listview">
                                <Store>
                                    <ext:Store ID="Store1" runat="server" OnRefreshData="SetListViewData">
                                        <Reader>
                                            <ext:JsonReader IDProperty="DT">
                                                <Fields>
                                                    <ext:RecordField Name="DT" />
                                                    <ext:RecordField Name="DT_V" />
                                                    <ext:RecordField Name="CLOSE_YN">
                                                    </ext:RecordField>
                                                    <ext:RecordField Name="CHA" Type="Int" />
                                                    <ext:RecordField Name="REQ_DATE" />
                                                    <ext:RecordField Name="REQ_JUMIN_NO" />
                                                    <ext:RecordField Name="CONFIRM_JUMIN_NO" />
                                                    <ext:RecordField Name="CONFIRM_DATE" />
                                                    <ext:RecordField Name="CONFIRM_YN" />
                                                    <ext:RecordField Name="REQ_MSG" />
                                                    <ext:RecordField Name="CONFIRM_MSG" />
                                                    <ext:RecordField Name="COLOR" />
                                                </Fields>
                                            </ext:JsonReader>
                                        </Reader>
                                    </ext:Store>
                                </Store>
                                <Columns>
                                    <ext:ListViewColumn Header="" Width="0.1" DataIndex="COLOR">
                                        <XTemplate ID="XTemplate1" runat="server">
                                            <Html>
                                            <tpl for=".">
                            <div style="{[getColor(values.COLOR)]} height: 18px;">{test}</div>
                        </tpl>
                                            </Html>
                                        </XTemplate>
                                    </ext:ListViewColumn>
                                    <ext:ListViewColumn Header="일자" Width="0" DataIndex="DT">
                                    </ext:ListViewColumn>
                                    <ext:ListViewColumn Header="일자" Width="0.4" DataIndex="DT_V">
                                    </ext:ListViewColumn>
                                    <ext:ListViewColumn Header="마감" Width="0.25" DataIndex="CLOSE_YN" Align="Center">
                                    </ext:ListViewColumn>
                                    <ext:ListViewColumn Header="차수" Width="0.25" DataIndex="CHA" Align="Center" />
                                </Columns>
                                <DirectEvents>
                                    <SelectionChange OnEvent="ListView1_SelectionChange">
                                        <ExtraParams>
                                            <ext:Parameter Name="Values" Value="Ext.encode(#{ListView1}.getRowsValues({ selectedOnly : true }))"
                                                Mode="Raw" />
                                        </ExtraParams>
                                        <EventMask ShowMask="true" Msg="조회중입니다..." MinDelay="50" />
                                    </SelectionChange>
                                </DirectEvents>
                            </ext:ListView>
                        </Items>
                    </ext:Panel>
                </West>
                <Center MarginsSummary="5 5 5 0">
                    <ext:FormPanel ID="formContent" runat="server" HideBorders="true">
                        <Items>
                            <ext:Panel ID="Panel1" runat="server" Title="공사일지" AnchorVertical="30%">
                                <TopBar>
                                    <ext:Toolbar ID="Toolbar11" runat="server">
                                        <Items>
                                            <ext:Button ID="Button41" runat="server" Icon="Disk" Text="기본정보 저장" ToolTip="기본정보와 주요작업내용을 저장합니다.">
                                                <DirectEvents>
                                                    <Click OnEvent="btnBaseInfoSave_Click">
                                                        <EventMask ShowMask="true" Msg="저장중입니다..." MinDelay="50" />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:Button ID="btnReqModify" runat="server" Text="수정요청" Icon="MonitorEdit">
                                                <DirectEvents>
                                                    <Click OnEvent="ShhowRequestDayWrite">
                                                        <ExtraParams>
                                                            <ext:Parameter Name="Values" Value="Ext.encode(#{ListView1}.getRowsValues({ selectedOnly : true }))"
                                                                Mode="Raw" />
                                                        </ExtraParams>
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:ToolbarFill ID="ToolbarFill1" runat="server" />
                                             <ext:Button ID="Button35" runat="server" Icon="DiskMagnify" Text="일지마감" ToolTip="해당 공사일지를 마감합니다.">
                                                <DirectEvents>
                                                    <Click OnEvent="btnBaseInfoSave_Click">
                                                        <EventMask ShowMask="true" Msg="저장중입니다..." MinDelay="50" />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                                <Content>
                                    <table style="width: 100%;">
                                        <tr>
                                            <td colspan="2">
                                                <ext:TextField ID="txtDT" runat="server" FieldLabel=" 작성일자 " ReadOnly="true" StyleSpec="width:50%" />
                                            </td>
                                            <td style="width: 50%">
                                                <ext:TextField ID="txtREG_NAME" runat="server" FieldLabel=" 작성자 " ReadOnly="true"
                                                    StyleSpec="width:50%" />
                                            </td>
                                        </tr>
                                        <td colspan="2">
                                            <ext:TextField ID="txtL_TEMP" runat="server" FieldLabel=" 날씨(10자이내) " StyleSpec="width:90%" />
                                        </td>
                                        <td>
                                            <ext:TextField ID="txtCFM_NAME" runat="server" FieldLabel=" 확인자 " StyleSpec="width:50%" />
                                        </td>
                                        <tr>
                                            <td colspan="3">
                                                <ext:TextField ID="txtPROJ_NM" runat="server" FieldLabel=" 공사명 " ReadOnly="true"
                                                    StyleSpec="width:80%" />
                                                <ext:TextField ID="txtLOC" runat="server" FieldLabel=" 위치 " StyleSpec="width:90%"
                                                    Visible="false" />
                                            </td>
                                            <%--                                            <td>
                                                <ext:TextField ID="txtL_TEMP" runat="server" FieldLabel=" 날씨(10자이내) " StyleSpec="width:90%" />
                                            </td>--%>
                                        </tr>
                                        <tr>
                                        </tr>
                                    </table>
                                </Content>
                            </ext:Panel>
                        </Items>
                        <Items>
                            <ext:TabPanel ID="TabPanel1" runat="server" Title="TabPanel" ActiveTabIndex="0" Border="false"
                                BodyStyle="background-color: white; border: 1px solid #AABBCC; border-top: none;">
                                <Items>
                                    <ext:Panel ID="Panel5" runat="server" Title="주요작업내용" BodyStyle="background-color: white;">
                                        <Content>
                                            <table style="width: 100%; height: 350px; padding-bottom: 5px">
                                                <tr>
                                                    <td>
                                                        <ext:TextArea ID="txtTO_WORK" runat="server" FieldLabel=" 오늘작업 " LabelAlign="Top"
                                                            AutoScroll="true" StyleSpec="width:90%;height :330px" />
                                                    </td>
                                                    <td>
                                                        <ext:TextArea ID="txtNE_WORK" runat="server" FieldLabel=" 내일작업 " LabelAlign="Top"
                                                            AutoScroll="true" StyleSpec="width:90%;height :330px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </Content>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="tab1" runat="server" Title="인원현황" BodyStyle="background-color: transparent;">
                                        <Items>
                                            <ext:GridPanel ID="GridPanel1" runat="server" Height="350" AutoScroll="true" HideBorders="true">
                                                <Store>
                                                    <ext:Store ID="Store2" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader>
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="NAME" />
                                                                    <ext:RecordField Name="ID" />
                                                                    <ext:RecordField Name="GUBUN" />
                                                                    <ext:RecordField Name="ACCUM" />
                                                                    <ext:RecordField Name="JEN_CNT" />
                                                                    <ext:RecordField Name="INPUT" />
                                                                    <ext:RecordField Name="TOT_CNT" />
                                                                    <ext:RecordField Name="PAY" />
                                                                    <ext:RecordField Name="TOT" />
                                                                    <ext:RecordField Name="FOOD_A" Type="Boolean">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_B" Type="Boolean">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_C" Type="Boolean">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_D" Type="Boolean">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_E" Type="Boolean">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="REMARK">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="ID_NM">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="GROUP_CD">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="GROUP_NM">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="CNT">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="DAY_CNT">
                                                                    </ext:RecordField>
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GrpViewPeople" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary3" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
                                                </SelectionModel>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar1" runat="server">
                                                        <Items>
                                                            <%--<ext:Button ID="Button30" runat="server" Text="입력추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="addEmployee" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                            <ext:Button ID="btnAddPeople" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                        <ExtraParams>
                                                                            <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly : false}))"
                                                                                Mode="Raw" />
                                                                        </ExtraParams>
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:Button ID="btnDelete" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="removeEmployee" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button31" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel1}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button20" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel1}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill1" runat="server" />
                                                            <ext:Button ID="Button1" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button2" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button3" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <ColumnModel ID="ColumnModel1" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="프로젝트코드" Width="100" DataIndex="PROJ_CD" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="DT" Header="작성일자" Width="100" DataIndex="DT" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SEQ_NO" Header="순번" Width="100" DataIndex="SEQ_NO" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NAME" Header="업무" Width="70" DataIndex="NAME" Align="Center"
                                                            Editable="false">
                                                            <Renderer Fn="orderRenderer" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox8" runat="server" StoreID="Store3" DisplayField="LCODENM"
                                                                    ValueField="CODE" Mode="Local" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="GUBUN" Header="업무" Width="70" DataIndex="GUBUN" Align="Center"
                                                            Hidden="true" />
                                                        <ext:Column ColumnID="ACCUM" Header="ACCUM" Width="100" DataIndex="ACCUM" Align="Center"
                                                            Hidden="true" />
                                                        <ext:Column ColumnID="ID_NM" Header="일용직사원등록" Width="60" DataIndex="ID_NM" Align="Center"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="gr1_Id" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="JEN_CNT" Header="전일누계" Width="80" DataIndex="JEN_CNT"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="INPUT" Header="금일투입" Width="80" DataIndex="INPUT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="gr1_INPUT" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_CNT" Header="누계현황" Width="80" DataIndex="TOT_CNT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="일급" Width="80" DataIndex="PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="gr1_PAY" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT" Header="합계" Width="90" DataIndex="TOT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <%--<ext:CheckColumn ColumnID="FOOD_A" Header="조식" Width="50" DataIndex="FOOD_A" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr1_FOOD_A" runat="server">
                                                                </ext:Checkbox>
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:CheckColumn ColumnID="FOOD_B" Header="중식" Width="50" DataIndex="FOOD_B" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr1_FOOD_B" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:CheckColumn ColumnID="FOOD_C" Header="석식" Width="50" DataIndex="FOOD_C" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr1_FOOD_C" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:CheckColumn ColumnID="FOOD_D" Header="간식" Width="50" DataIndex="FOOD_D" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr1_FOOD_D" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:CheckColumn ColumnID="FOOD_E" Header="간식" Width="50" DataIndex="FOOD_E" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr1_FOOD_E" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>--%>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="250" DataIndex="REMARK">
                                                            <Editor>
                                                                <ext:TextField ID="gr1_REMARK" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                </ColumnModel>
                                                <Listeners>
                                                    <AfterEdit Fn="afterEdit" />
                                                </Listeners>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="Panel3" runat="server" Title="주요 자재현황" BodyStyle="background-color: transparent;">
                                        <Items>
                                            <ext:GridPanel ID="GridPanel2" runat="server" Height="350" AutoScroll="true" HideBorders="true">
                                                <Store>
                                                    <ext:Store ID="Store4" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader>
                                                                <Fields>
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="ITEM_GUBUN" />
                                                                    <ext:RecordField Name="NAME" />
                                                                    <ext:RecordField Name="SPEC" />
                                                                    <ext:RecordField Name="UNIT" />
                                                                    <ext:RecordField Name="P_QTY" />
                                                                    <ext:RecordField Name="PRE_IN_QTY" />
                                                                    <ext:RecordField Name="IN_QTY" />
                                                                    <ext:RecordField Name="IN_SUM_QTY" />
                                                                    <ext:RecordField Name="USE_QTY" />
                                                                    <ext:RecordField Name="PRE_USE_QTY" />
                                                                    <ext:RecordField Name="USE_SUM_QTY" />
                                                                    <ext:RecordField Name="PAY" />
                                                                    <ext:RecordField Name="AMOUNT" />
                                                                    <ext:RecordField Name="VAT_CHK" />
                                                                    <ext:RecordField Name="TOT_AMOUNT" />
                                                                    <ext:RecordField Name="PROOF" />
                                                                    <ext:RecordField Name="COMPLETE_ADD" />
                                                                    <ext:RecordField Name="REMARK" />
                                                                    <ext:RecordField Name="ATTACT" />
                                                                    <ext:RecordField Name="REMAINDER" />
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="CD" />
                                                                    <ext:RecordField Name="A_IN_QTY" />
                                                                    <ext:RecordField Name="A_USE_QTY" />
                                                                    <ext:RecordField Name="ZIP_OFFICE" />
                                                                    <ext:RecordField Name="ZIP_HYUN" />
                                                                    <ext:RecordField Name="SU_OFFICE" />
                                                                    <ext:RecordField Name="SU_HYUN" />
                                                                    <ext:RecordField Name="BIGO" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GrpViewMat" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" >
                                                        <GetRowClass Fn="getRowClass" />   
                                                        </ext:GroupingView>
                                                </View>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary2" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel2" runat="server" />
                                                </SelectionModel>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar2" runat="server">
                                                        <Items>
                                                            <%--<ext:Button ID="Button4" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="addJaje" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                            <ext:Button ID="Button6" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="removeJaje" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button7" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel2}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button5" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel2}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnAddMat" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:ComboBox ID="cbxAddMat" runat="server">
                                                            </ext:ComboBox>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill2" runat="server" />
                                                            <ext:Button ID="Button8" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button9" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button10" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <ColumnModel ID="ColumnModel2" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="130" DataIndex="BIZ_REGNO" Align="Center"
                                                            Editable="false">
                                                            <Renderer Fn="cbxRenderEqp" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox2" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                    ValueField="BIZ_REGNO" Mode="Local" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="ITEM_GUBUN" Header="자재/수목" Width="80" DataIndex="ITEM_GUBUN"
                                                            Align="Center" Editable="false">
                                                            <Renderer Fn="cbxRenderItem" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox3" runat="server" StoreID="StrItemGubun" DisplayField="NAME"
                                                                    ValueField="CODE" Mode="Local" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="CD" Header="자재코드" Width="100" DataIndex="CD" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NAME" Header="자재명" Width="100" DataIndex="NAME" Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField1" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SPEC" Header="규격" Width="100" DataIndex="SPEC" Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField2" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="UNIT" Header="단위" Width="70" DataIndex="UNIT" Align="Center"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField3" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="P_QTY" Header="설계량" Width="100" DataIndex="P_QTY"
                                                            Align="Center" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField1" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PRE_IN_QTY" Header="반입량-계전일누계" Width="100" DataIndex="PRE_IN_QTY"
                                                            SummaryType="Sum" Align="Center">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="IN_QTY" Header="반입량-금일" Width="100" DataIndex="IN_QTY"
                                                            SummaryType="Sum" Align="Center">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField2" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="IN_SUM_QTY" Header="반입량-누계" Width="100" DataIndex="IN_SUM_QTY"
                                                            SummaryType="Sum" Align="Center">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="USE_QTY" Header="사용량-금일사용" Width="100" DataIndex="USE_QTY"
                                                            SummaryType="Sum" Align="Center">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField3" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:NumberColumn ColumnID="PRE_USE_QTY" Header="사용량-전일누계" Width="100" DataIndex="PRE_USE_QTY"
                                                            Align="Center" Hidden="true">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                        </ext:NumberColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="USE_SUM_QTY" Header="사용량-누계" Width="100" DataIndex="USE_SUM_QTY"
                                                            Align="Center" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="단가" Width="80" DataIndex="PAY"
                                                            Align="Center" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField4" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="AMOUNT" Header="금액" Width="80" DataIndex="AMOUNT"
                                                            Align="Center" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="50" DataIndex="VAT_CHK" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr2_VAT_CHK" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_AMOUNT" Header="합계" Width="80" DataIndex="TOT_AMOUNT"
                                                            Align="Center" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="PROOF" Header="관련증빙" Width="70" DataIndex="PROOF" Align="Center">
                                                            <Renderer Fn="cbxRenderProof" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox1" runat="server" StoreID="StrProof" DisplayField="LCODENM"
                                                                    ValueField="CODE" Mode="Local" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:CheckColumn ColumnID="COMPLETE_ADD" Header="첨부완결" Width="50" DataIndex="COMPLETE_ADD"
                                                            Align="Center" Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="gr2_COMPLETE_ADD" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="150" DataIndex="REMARK" Align="Center">
                                                            <Editor>
                                                                <ext:TextField ID="TextField4" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="ATTACT" Header="ATTACT" Width="80" DataIndex="ATTACT" Align="Center"
                                                            Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="REMAINDER" Header="REMAINDER" Width="80" DataIndex="REMAINDER"
                                                            Align="Center" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" Width="80" DataIndex="PROJ_CD" Align="Center"
                                                            Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="DT" Header="DT" Width="80" DataIndex="DT" Align="Center" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SEQ_NO" Header="SEQ_NO" Width="80" DataIndex="SEQ_NO" Align="Center"
                                                            Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="CD" Header="CD" Width="80" DataIndex="CD" Align="Center" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="A_IN_QTY" Header="A_IN_QTY" Width="80" DataIndex="A_IN_QTY"
                                                            Align="Center" Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="A_USE_QTY" Header="A_USE_QTY" Width="80" DataIndex="A_USE_QTY"
                                                            Align="Center" Hidden="true">
                                                        </ext:Column>
                                                    </Columns>
                                                </ColumnModel>
                                                <Listeners>
                                                    <AfterEdit Fn="afterEdit" />
                                                </Listeners>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="pnlEqp" runat="server" Title="장비현황" BodyStyle="background-color: transparent;"
                                        Layout="Fit" AutoScroll="true">
                                        <Items>
                                            <ext:GridPanel ID="grdPnlEqp" runat="server" Title="" Height="350">
                                                <Store>
                                                    <ext:Store ID="StrEqp" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="NAME" />
                                                                    <ext:RecordField Name="ACCUM" DefaultValue="0" />
                                                                    <ext:RecordField Name="PRE_INPUT" DefaultValue="0" />
                                                                    <ext:RecordField Name="INPUT" DefaultValue="0" />
                                                                    <ext:RecordField Name="PRE_TO_INPUT" DefaultValue="0" />
                                                                    <ext:RecordField Name="REMARK" />
                                                                    <ext:RecordField Name="SPEC" />
                                                                    <ext:RecordField Name="UNIT" />
                                                                    <ext:RecordField Name="COST" DefaultValue="0" />
                                                                    <ext:RecordField Name="SUM_COST" DefaultValue="0" />
                                                                    <ext:RecordField Name="PAYMENT" DefaultValue="0" />
                                                                    <ext:RecordField Name="REMAINDER" DefaultValue="0" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="VAT" DefaultValue="1.1" />
                                                                    <ext:RecordField Name="VAT_CHK">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FULL_SUM_COST" DefaultValue="0" />
                                                                    <ext:RecordField Name="EQUIP_KIND" DefaultValue="0" />
                                                                    <ext:RecordField Name="EQUIP_CD" DefaultValue="0" />
                                                                    <ext:RecordField Name="PROOF" DefaultValue="0" />
                                                                    <ext:RecordField Name="ATTACH">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="ZIP_OFFICE" />
                                                                    <ext:RecordField Name="ZIP_HYUN" />
                                                                    <ext:RecordField Name="SU_OFFICE" />
                                                                    <ext:RecordField Name="SU_HYUN" />
                                                                    <ext:RecordField Name="FOOD_A" Type="Boolean" DefaultValue="0">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_B" Type="Boolean" DefaultValue="0">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_C" Type="Boolean" DefaultValue="0">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_D" Type="Boolean" DefaultValue="0">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="FOOD_E" Type="Boolean" DefaultValue="0">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="BIGO" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GrpViewEqp" runat="server" ForceFit="true" MarkDirty="true"
                                                        ShowGroupName="false" EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="ToolbarEqp" runat="server">
                                                        <Items>
                                                            <ext:Button ID="btnEqpAdd" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="addEqp" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnEqpDel" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="removeEqp" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button11" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{grdPnlEqp}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button12" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{grdPnlEqp}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnAddEqp" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:ComboBox ID="cbxAddEqp" runat="server">
                                                            </ext:ComboBox>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill3" runat="server" />
                                                            <ext:Button ID="Button14" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button15" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button16" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary1" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModelEqp" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                        <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center"
                                                            Editable="false">
                                                            <Renderer Fn="cbxRenderEqp" />
                                                            <Editor>
                                                                <ext:ComboBox ID="cbxEqp" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                    ValueField="BIZ_REGNO" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NAME" Header="명칭" Width="120" DataIndex="NAME" Align="Center"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="tbxName" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SPEC" Header="규격" Width="120" DataIndex="SPEC" Align="Center"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="tbxSpec" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="UNIT" Header="단위" Width="50" DataIndex="UNIT" Align="Center"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="tbxUnit" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="PRE_INPUT" Header="전일 누계" Width="100" DataIndex="PRE_INPUT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfPre_Input" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="INPUT" Header="금일 투입" Width="100" DataIndex="INPUT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfInput" runat="server" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <Complete Fn="eqpInputChange" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PRE_TO_INPUT" Header="누계 현황" Width="100" DataIndex="PRE_TO_INPUT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfPre_To_Input" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="COST" Header="단가" Width="100" DataIndex="COST"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfCost" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="SUM_COST" Header="공급가" Width="100" DataIndex="SUM_COST"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfSum_Cost" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="50" DataIndex="VAT_CHK" Align="Right"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="cbxVat_Chk" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="FULL_SUM_COST" Header="금액" Width="100" DataIndex="FULL_SUM_COST"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfFull_Sum_Cost" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="PROOF" Header="관련증빙" Width="100" DataIndex="PROOF" Align="Center">
                                                            <Renderer Fn="cbxRenderProof" />
                                                            <Editor>
                                                                <ext:ComboBox ID="cbxProof" runat="server" StoreID="StrProof" DisplayField="LCODENM"
                                                                    ValueField="CODE" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:CheckColumn ColumnID="ATTACH" Header="첨부완결" Width="50" DataIndex="ATTACH" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="cbxAttach" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="100" DataIndex="REMARK">
                                                            <Editor>
                                                                <ext:TextField ID="tbxRemark" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{grdPnlEqp});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <%--<CellClick Fn="eqpIndex" />--%>
                                                    <ColumnResize Handler="updateTotal(#{grdPnlEqp});" />
                                                    <AfterRender Handler="updateTotal(#{grdPnlEqp});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel3" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="Panel2" runat="server" Title="공종계획" BodyStyle="background-color: transparent;"
                                        AutoScroll="true">
                                        <Items>
                                            <ext:Panel ID="Panel4" runat="server" Height="52">
                                                <Content>
                                                    <table style="width: 100%;">
                                                        <tr>
                                                            <td style="width: 100px;">
                                                                공종누계진행률
                                                            </td>
                                                            <td>
                                                                (누계금액/계약금액 *100)&nbsp;&nbsp;&nbsp;
                                                                <ext:TextField ID="lblSum11" runat="server" al>
                                                                </ext:TextField>
                                                                /
                                                                <ext:TextField ID="lblSum12" runat="server">
                                                                </ext:TextField>
                                                                X 100 =
                                                                <ext:TextField ID="lblSum13" runat="server" Text="" Width="250">
                                                                </ext:TextField>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td>
                                                                (누계금액/실행(예산) *100)
                                                                <ext:TextField ID="lblSum21" runat="server">
                                                                </ext:TextField>
                                                                /
                                                                <ext:TextField ID="lblSum22" runat="server">
                                                                </ext:TextField>
                                                                X 100 =
                                                                <ext:TextField ID="lblSum23" runat="server" Width="250">
                                                                </ext:TextField>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </Content>
                                            </ext:Panel>
                                        </Items>
                                        <Items>
                                            <ext:GridPanel ID="GridPanel4" runat="server" Title="" Height="300">
                                                <Store>
                                                    <ext:Store ID="Store6" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="ITEM_CD_NM">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="ITEM_CD" />
                                                                    <ext:RecordField Name="SUB_ITEM_CD" />
                                                                    <ext:RecordField Name="ITEM_CD_NM" />
                                                                    <ext:RecordField Name="SUB_ITEM_NM" />
                                                                    <ext:RecordField Name="SPEC" />
                                                                    <ext:RecordField Name="UNIT" />
                                                                    <ext:RecordField Name="QTY" DefaultValue="0" />
                                                                    <ext:RecordField Name="UC" DefaultValue="0" />
                                                                    <ext:RecordField Name="AMT" DefaultValue="0" />
                                                                    <ext:RecordField Name="P_QTY" DefaultValue="0" />
                                                                    <ext:RecordField Name="P_AMT" DefaultValue="0" />
                                                                    <ext:RecordField Name="S_QTY" DefaultValue="0" />
                                                                    <ext:RecordField Name="SUM_QTY" />
                                                                    <ext:RecordField Name="COMPUTE_2" />
                                                                    <ext:RecordField Name="COSTSUM" />
                                                                    <ext:RecordField Name="REMARK" />
                                                                    <ext:RecordField Name="S_AMT" DefaultValue="0" />
                                                                    <ext:RecordField Name="A_QTY" DefaultValue="0" />
                                                                    <ext:RecordField Name="PRE_S_QTY" />
                                                                    <ext:RecordField Name="VAT_CHK" />
                                                                    <ext:RecordField Name="PROOF" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="ATTACH" />
                                                                    <ext:RecordField Name="ITEM_GUBUN" />
                                                                    <ext:RecordField Name="M_FLAG" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GroupingView2" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="false" >
                                                         <GetRowClass Fn="getRowKongClass" />     
                                                        </ext:GroupingView>
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar5" runat="server">
                                                        <Items>
                                                            <ext:Button ID="Button3" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel4}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button8" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel4}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary5" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModel4" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="ITEM_CD" Header="ITEM_CD" Width="120" DataIndex="ITEM_CD" Align="Left"
                                                            Hidden="true">
                                                        </ext:Column>
                                                        <ext:Column ColumnID="ITEM_CD_NM" Header="공종" Width="120" DataIndex="ITEM_CD_NM"
                                                            Align="Left" Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField12" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SUB_ITEM_NM" Header="" Width="120" DataIndex="SUB_ITEM_NM"
                                                            Align="Left" Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField13" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SPEC" Header="규격" Width="80" DataIndex="SPEC" Align="Left"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField15" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="UNIT" Header="단위" Width="80" DataIndex="UNIT" Align="Left"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="TextField16" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="QTY" Header="계약수량" Width="90" DataIndex="QTY"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField11" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PRE_S_QTY" Header="전일누계" Width="100" DataIndex="PRE_S_QTY"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="S_QTY" Header="금일작업" Width="90" DataIndex="S_QTY"
                                                            Align="Right" SummaryType="Sum" >
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField12" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="SUM_QTY" Header="누계작업수량" Width="100" DataIndex="SUM_QTY"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="COMPUTE_2" Header="진행율" Width="100" DataIndex="COMPUTE_2"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.00'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="UC" Header="단가" Width="90" DataIndex="UC" Align="Right"
                                                            SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField13" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="COSTSUM" Header="금액" Width="90" DataIndex="COSTSUM"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="250" DataIndex="REMARK" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField17" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{GridPanel4});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <ColumnResize Handler="updateTotal(#{GridPanel4});" />
                                                    <AfterRender Handler="updateTotal(#{GridPanel4});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel6" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="pnlTrans" runat="server" Title="운송현황" BodyStyle="background-color: transparent;"
                                        Layout="Fit" AutoScroll="true">
                                        <Items>
                                            <ext:GridPanel ID="grdPnlTrans" runat="server" Title="" Height="350">
                                                <Store>
                                                    <ext:Store ID="StrTrans" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="CAR_NUM" />
                                                                    <ext:RecordField Name="NAME" />
                                                                    <ext:RecordField Name="STANDARD" />
                                                                    <ext:RecordField Name="STDCOUNT" DefaultValue="0" />
                                                                    <ext:RecordField Name="PAY" DefaultValue="0" />
                                                                    <ext:RecordField Name="TOT_PAY" />
                                                                    <ext:RecordField Name="START_LOC" />
                                                                    <ext:RecordField Name="DEST_LOC" />
                                                                    <ext:RecordField Name="REMARK" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="PROOF" />
                                                                    <ext:RecordField Name="ATTACH">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="VAT_CHK">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="TOT_VAT_PAY" />
                                                                    <ext:RecordField Name="NAME2" />
                                                                    <ext:RecordField Name="EQUIP_KIND" DefaultValue="0" />
                                                                    <ext:RecordField Name="EQUIP_CD" DefaultValue="0" />
                                                                    <ext:RecordField Name="VAT" DefaultValue="0" />
                                                                    <ext:RecordField Name="INPUT" DefaultValue="0" />
                                                                    <ext:RecordField Name="REMAINDER" DefaultValue="0" />
                                                                    <ext:RecordField Name="ZIP_OFFICE" />
                                                                    <ext:RecordField Name="ZIP_HYUN" />
                                                                    <ext:RecordField Name="SU_OFFICE" />
                                                                    <ext:RecordField Name="SU_HYUN" />
                                                                    <ext:RecordField Name="BIGO" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GrpViewTrans" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="ToolbarTrans" runat="server">
                                                        <Items>
                                                            <ext:Button ID="btnTransAdd" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="addTrans" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnTransDel" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="removeTrans" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnTransSave" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{grdPnlTrans}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnTransReload" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{grdPnlTrans}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnAddTrans" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                        <ExtraParams>
                                                                            <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly : false}))"
                                                                                Mode="Raw" />
                                                                        </ExtraParams>
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:ComboBox ID="cbxAddTrans" runat="server">
                                                            </ext:ComboBox>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill4" runat="server" />
                                                            <ext:Button ID="Button17" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button18" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button19" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummaryTrans" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModelTrans" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                        <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center"
                                                            Editable="false">
                                                            <Renderer Fn="cbxRenderEqp" />
                                                            <Editor>
                                                                <ext:ComboBox ID="cbxTransBiz" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                    ValueField="BIZ_REGNO" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NAME2" Header="장비명" Width="120" DataIndex="NAME2" Align="Left"
                                                            Editable="false">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransName2" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="INPUT" Header="금일 투입" Width="100" DataIndex="INPUT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0.0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfTransInput" runat="server" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <Complete Fn="eqpInputChange" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="운임" Width="100" DataIndex="PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfTransPay" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_PAY" Header="공급가액" Width="120" DataIndex="TOT_PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfTransTot_Pay" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="80" DataIndex="VAT_CHK" Align="Right"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="cbxTransVat" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_VAT_PAY" Header="금액" Width="120" DataIndex="TOT_VAT_PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="nfTransTot_Vat_Pay" runat="server" />
                                                            </Editor>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="PROOF" Header="관련증빙" Width="100" DataIndex="PROOF" Align="Center">
                                                            <Renderer Fn="cbxRenderProof" />
                                                            <Editor>
                                                                <ext:ComboBox ID="cbxTransProof" runat="server" StoreID="StrProof" DisplayField="LCODENM"
                                                                    ValueField="CODE" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:CheckColumn ColumnID="ATTACH" Header="첨부완결" Width="80" DataIndex="ATTACH" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="chkTransAttach" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:Column ColumnID="CAR_NUM" Header="차량번호(운전자명)" Width="250" DataIndex="CAR_NUM"
                                                            Align="Center">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransCar_Num" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NAME" Header="적재명" Width="250" DataIndex="NAME" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransName" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="STANDARD" Header="규격" Width="100" DataIndex="STANDARD" Align="Center">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransStandard" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:NumberColumn ColumnID="STDCOUNT" Header="적재수량" Width="100" DataIndex="STDCOUNT"
                                                            Align="Right" Format="0,0">
                                                            <Editor>
                                                                <ext:NumberField ID="nfTransStdCount" runat="server" />
                                                            </Editor>
                                                        </ext:NumberColumn>
                                                        <ext:Column ColumnID="START_LOC" Header="출발" Width="150" DataIndex="START_LOC" Align="Center">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransStart_Loc" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="DEST_LOC" Header="도착" Width="150" DataIndex="DEST_LOC" Align="Center">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransDesc_Loc" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="400" DataIndex="REMARK" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="tbxTransRemark" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{grdPnlTrans});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <%--<CellClick Fn="eqpIndex" />--%>
                                                    <ColumnResize Handler="updateTotal(#{grdPnlTrans});" />
                                                    <AfterRender Handler="updateTotal(#{grdPnlTrans});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel4" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="Panel6" runat="server" Title="경비현황" BodyStyle="background-color: transparent;"
                                        Layout="Fit" AutoScroll="true">
                                        <Items>
                                            <ext:GridPanel ID="GridPanel3" runat="server" Title="" Height="350">
                                                <Store>
                                                    <ext:Store ID="Store5" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="PART" />
                                                                    <ext:RecordField Name="PAY" DefaultValue="0" />
                                                                    <ext:RecordField Name="TOT_PAY" />
                                                                    <ext:RecordField Name="REMARK" />
                                                                    <ext:RecordField Name="RULE" />
                                                                    <ext:RecordField Name="COUNT" DefaultValue="0" />
                                                                    <ext:RecordField Name="VAT_CHK">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="TOT_VAT_PAY" />
                                                                    <ext:RecordField Name="PROOF" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="BIZ_NAME" />
                                                                    <ext:RecordField Name="ATTACH">
                                                                        <Convert Handler="return value == 1;" />
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="NKIND" DefaultValue="0" />
                                                                    <ext:RecordField Name="NCODE" DefaultValue="0" />
                                                                    <ext:RecordField Name="REMAINDER" DefaultValue="0" />
                                                                    <ext:RecordField Name="ZIP_OFFICE" />
                                                                    <ext:RecordField Name="ZIP_HYUN" />
                                                                    <ext:RecordField Name="SU_HYUN" />
                                                                    <ext:RecordField Name="SU_OFFICE" />
                                                                    <ext:RecordField Name="BIGO" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GroupingView1" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar3" runat="server">
                                                        <Items>
                                                            <ext:Button ID="btnAddGB" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="AddGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="btnRemoveGB" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="RemoveGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button23" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button24" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <%--<ext:Button ID="btnAddCost" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>--%>
<%--                                                            <ext:ComboBox ID="cbxAddCost" runat="server">
                                                            </ext:ComboBox>--%>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill5" runat="server" />
                                                            <ext:Button ID="Button27" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button28" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button29" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary4" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModel3" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                        <ext:Column ColumnID="PART" Header="적요" Width="200" DataIndex="PART" Align="Left"
                                                            >
                                                            <Editor>
                                                                <ext:TextField ID="tbxCostPart" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="RULE" Header="규격" Width="200" DataIndex="RULE" Align="Left"
                                                           >
                                                            <Editor>
                                                                <ext:TextField ID="tbxCostRule" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:NumberColumn ColumnID="PAY" Header="단가" Width="200" DataIndex="PAY" Align="Right"
                                                            Format="0,0" >
                                                            <Editor>
                                                                <ext:NumberField ID="nfCostPay" runat="server" />
                                                            </Editor>
                                                        </ext:NumberColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="COUNT" Header="수량" Width="100" DataIndex="COUNT"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                            <Editor>
                                                                <ext:NumberField ID="NumberField10" runat="server" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <Complete Fn="eqpInputChange" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_PAY" Header="금액" Width="100" DataIndex="TOT_PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="80" DataIndex="VAT_CHK" Align="Right"
                                                            >
                                                            <Editor>
                                                                <ext:Checkbox ID="Checkbox3" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="TOT_VAT_PAY" Header="합계" Width="100" DataIndex="TOT_VAT_PAY"
                                                            Align="Right" SummaryType="Sum" Editable="false">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="PROOF" Header="관련증빙" Width="100" DataIndex="PROOF" Align="Center"
                                                            Editable="true">
                                                            <Renderer Fn="cbxRenderProof" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox6" runat="server" StoreID="StrProof" DisplayField="LCODENM"
                                                                    ValueField="CODE" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:CheckColumn ColumnID="ATTACH" Header="첨부완결" Width="80" DataIndex="ATTACH" Align="Center"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="Checkbox4" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center">
                                                            <Renderer Fn="cbxRenderEqp" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox4" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                    ValueField="BIZ_REGNO" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="REMARK" Header="비고" Width="400" DataIndex="REMARK" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField14" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{grdPnlTrans});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <%--<CellClick Fn="eqpIndex" />--%>
                                                    <ColumnResize Handler="updateTotal(#{grdPnlTrans});" />
                                                    <AfterRender Handler="updateTotal(#{grdPnlTrans});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel5" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                        <Items>
                                            <ext:GridPanel ID="GridPanel8" runat="server" Title="" Height="350" Hidden="true">
                                                <Store>
                                                    <ext:Store ID="Store10" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="NKIND" />
                                                                    <ext:RecordField Name="NKIND_NM" />
                                                                    <ext:RecordField Name="NCODE" />
                                                                    <ext:RecordField Name="NCODE_NM" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="BIZ_NAME" />
                                                                    <ext:RecordField Name="PART_NM" />
                                                                    <ext:RecordField Name="PAY" />
                                                                    <ext:RecordField Name="VAT_CHK" />
                                                                    <ext:RecordField Name="BIGO" />
                                                                    <ext:RecordField Name="SERVE_ME" />
                                                                    <ext:RecordField Name="SERVE_YOU" />
                                                                    <ext:RecordField Name="SERVE_CUST" />
                                                                    <ext:RecordField Name="SERVE_OBJECT" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GroupingView6" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar10" runat="server">
                                                        <Items>
                                                            <ext:Button ID="Button29" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="AddGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button30" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="RemoveGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button32" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button33" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                           <%-- <ext:Button ID="Button34" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:ComboBox ID="ComboBox13" runat="server">
                                                            </ext:ComboBox>--%>
                                                            <%--<ext:ToolbarFill ID="ToolbarFill5" runat="server" />
                                                            <ext:Button ID="Button27" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button28" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button29" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary9" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModel8" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                        <ext:Column ColumnID="NKIND_NM" Header="대분류계정" Width="200" DataIndex="NKIND_NM" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField19" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="NCODE_NM" Header="소분류계정" Width="200" DataIndex="NCODE_NM" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField20" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center">
                                                            <Renderer Fn="cbxRenderEqp" />
                                                            <Editor>
                                                                <ext:ComboBox ID="ComboBox11" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                    ValueField="BIZ_REGNO" />
                                                            </Editor>
                                                            <EditorOptions>
                                                                <Listeners>
                                                                    <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                </Listeners>
                                                            </EditorOptions>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="금액" Width="100" DataIndex="PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="80" DataIndex="VAT_CHK" Align="Right"
                                                            Editable="true">
                                                            <Editor>
                                                                <ext:Checkbox ID="Checkbox1" runat="server" />
                                                            </Editor>
                                                        </ext:CheckColumn>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="합계" Width="100" DataIndex="PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="BIGO" Header="비고" Width="400" DataIndex="BIGO" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField26" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SERVE_ME" Header="접대자" Width="200" DataIndex="SERVE_ME" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField27" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SERVE_YOU" Header="접대상대방" Width="200" DataIndex="SERVE_YOU"
                                                            Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField28" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SERVE_CUST" Header="접대상호명" Width="200" DataIndex="SERVE_CUST"
                                                            Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField29" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="SERVE_OBJECT" Header="접대목적" Width="200" DataIndex="SERVE_OBJECT"
                                                            Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField30" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{grdPnlTrans});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <%--<CellClick Fn="eqpIndex" />--%>
                                                    <ColumnResize Handler="updateTotal(#{grdPnlTrans});" />
                                                    <AfterRender Handler="updateTotal(#{grdPnlTrans});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel10" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                        <Items>
                                            <ext:GridPanel ID="GridPanel7" runat="server" Title="" Height="350" Hidden="true">
                                                <Store>
                                                    <ext:Store ID="Store9" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                        OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                        OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                        OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                        <Reader>
                                                            <ext:JsonReader IDProperty="TaskID">
                                                                <Fields>
                                                                    <ext:RecordField Name="PROJ_CD" />
                                                                    <ext:RecordField Name="DT" />
                                                                    <ext:RecordField Name="SEQ_NO" />
                                                                    <ext:RecordField Name="NKIND" />
                                                                    <ext:RecordField Name="NKIND_NM" />
                                                                    <ext:RecordField Name="NCODE" />
                                                                    <ext:RecordField Name="NCODE_NM" />
                                                                    <ext:RecordField Name="BIZ_REGNO" />
                                                                    <ext:RecordField Name="BIZ_NAME" />
                                                                    <ext:RecordField Name="PART_NM">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="PAY" />
                                                                    <ext:RecordField Name="VAT_CHK" />
                                                                    <ext:RecordField Name="BIGO" />
                                                                    <ext:RecordField Name="SERVE_ME" />
                                                                    <ext:RecordField Name="SERVE_YOU">
                                                                    </ext:RecordField>
                                                                    <ext:RecordField Name="SERVE_CUST" />
                                                                    <ext:RecordField Name="SERVE_OBJECT" />
                                                                </Fields>
                                                            </ext:JsonReader>
                                                        </Reader>
                                                        <Listeners>
                                                            <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                            <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                            <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                            <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                        </Listeners>
                                                    </ext:Store>
                                                </Store>
                                                <View>
                                                    <ext:GroupingView ID="GroupingView5" runat="server" MarkDirty="true" ShowGroupName="false"
                                                        EnableNoGroups="true" HideGroupedColumn="true" />
                                                </View>
                                                <TopBar>
                                                    <ext:Toolbar ID="Toolbar8" runat="server">
                                                        <Items>
                                                            <ext:Button ID="Button4" runat="server" Text="추가" Icon="Add">
                                                                <Listeners>
                                                                    <Click Fn="AddGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button25" runat="server" Text="삭제" Icon="Delete">
                                                                <Listeners>
                                                                    <Click Fn="RemoveGB" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button26" runat="server" Text="저장" Icon="Disk">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.save();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button27" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                <Listeners>
                                                                    <Click Handler="#{GridPanel3}.reload();" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <%--<ext:Button ID="Button28" runat="server" Text="선택추가" Icon="Add">
                                                                <DirectEvents>
                                                                    <Click OnEvent="btnChoiceAdd_Click">
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:ComboBox ID="ComboBox9" runat="server">
                                                            </ext:ComboBox>--%>
                                                        </Items>
                                                    </ext:Toolbar>
                                                </TopBar>
                                                <Plugins>
                                                    <ext:GroupingSummary ID="GroupingSummary8" runat="server">
                                                        <Calculations>
                                                            <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                        </Calculations>
                                                    </ext:GroupingSummary>
                                                </Plugins>
                                                <ColumnModel ID="ColumnModel7" runat="server">
                                                    <Columns>
                                                        <ext:RowNumbererColumn />
                                                        <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                        <ext:Column ColumnID="NCODE" Header="정산서항목" Width="200" DataIndex="NCODE" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField24" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:Column ColumnID="PART_NM" Header="적요" Width="200" DataIndex="PART_NM" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField5" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                        <ext:GroupingSummaryColumn ColumnID="PAY" Header="금액" Width="100" DataIndex="PAY"
                                                            Align="Right" SummaryType="Sum">
                                                            <Renderer Format="Number" FormatArgs="'0,0'" />
                                                        </ext:GroupingSummaryColumn>
                                                        <ext:Column ColumnID="BIGO" Header="비고" Width="400" DataIndex="BIGO" Align="Left">
                                                            <Editor>
                                                                <ext:TextField ID="TextField25" runat="server" />
                                                            </Editor>
                                                        </ext:Column>
                                                    </Columns>
                                                    <Listeners>
                                                        <WidthChange Handler="updateTotal(#{GridPanel7});" />
                                                    </Listeners>
                                                </ColumnModel>
                                                <Listeners>
                                                    <%--<CellClick Fn="eqpIndex" />--%>
                                                    <ColumnResize Handler="updateTotal(#{GridPanel7});" />
                                                    <AfterRender Handler="updateTotal(#{GridPanel7});" Delay="100" />
                                                </Listeners>
                                                <SelectionModel>
                                                    <ext:RowSelectionModel ID="RowSelectionModel9" runat="server" />
                                                </SelectionModel>
                                                <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                <SaveMask ShowMask="true" Msg="저장중입니다." />
                                            </ext:GridPanel>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                                <Items>
                                    <ext:Panel ID="Panel8" runat="server" Title="외주관리" BodyStyle="background-color: transparent;"
                                        Layout="Fit" AutoScroll="true" Height="350">
                                        <Items>
                                            <ext:RowLayout runat="server" Split="true">
                                                <Rows>
                                                    <ext:LayoutRow RowHeight="0.5">
                                                        <ext:GridPanel ID="GridPanel5" runat="server" Title="" AutoScroll="true">
                                                            <Store>
                                                                <ext:Store ID="Store7" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                                    OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                                    OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                                    OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                                    <Reader>
                                                                        <ext:JsonReader IDProperty="SEQ_NO_ID">
                                                                            <Fields>
                                                                                <ext:RecordField Name="PROJ_CD" />
                                                                                <ext:RecordField Name="DT" />
                                                                                <ext:RecordField Name="SEQ_NO" />
                                                                                <ext:RecordField Name="SEQ_NO_ID" />
                                                                                <ext:RecordField Name="ITEM_NO" />
                                                                                <ext:RecordField Name="GUBUN" />
                                                                                <ext:RecordField Name="ITEM_CD" />
                                                                                <ext:RecordField Name="ITEM_NM" />
                                                                                <ext:RecordField Name="SUB_ITEM_CD" />
                                                                                <ext:RecordField Name="SUB_ITEM_NM" />
                                                                                <ext:RecordField Name="SPEC" />
                                                                                <ext:RecordField Name="QTY" DefaultValue="0" />
                                                                                <ext:RecordField Name="QTY2" DefaultValue="0" />
                                                                                <ext:RecordField Name="PRICE" DefaultValue="0" />
                                                                                <ext:RecordField Name="BIGO" />
                                                                                <ext:RecordField Name="VAT_CHK">
                                                                                    <Convert Handler="return value == 1;" />
                                                                                </ext:RecordField>
                                                                                <ext:RecordField Name="PROOF" DefaultValue="0" />
                                                                                <ext:RecordField Name="BIZ_REGNO" />
                                                                                <ext:RecordField Name="ATTACT">
                                                                                </ext:RecordField>
                                                                                <ext:RecordField Name="REMAINDER" />
                                                                                <ext:RecordField Name="CD" />
                                                                                <ext:RecordField Name="UNIT" />
                                                                                <ext:RecordField Name="QTY_PRICE" DefaultValue="0" />
                                                                                <ext:RecordField Name="VAT_QTY_PRICE" DefaultValue="0" />
                                                                                <ext:RecordField Name="CNT" />
                                                                                <ext:RecordField Name="PAY" DefaultValue="0" />
                                                                            </Fields>
                                                                        </ext:JsonReader>
                                                                    </Reader>
                                                                    <Listeners>
                                                                        <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                                        <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                                        <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                                        <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                                    </Listeners>
                                                                </ext:Store>
                                                            </Store>
                                                            <View>
                                                                <ext:GroupingView ID="GroupingView3" runat="server" MarkDirty="true" ShowGroupName="false"
                                                                    EnableNoGroups="true" HideGroupedColumn="true" />
                                                            </View>
                                                            <TopBar>
                                                                <ext:Toolbar ID="Toolbar6" runat="server">
                                                                    <Items>
                                                                        <ext:Button ID="Button1" runat="server" Text="추가" Icon="Add">
                                                                            <Listeners>
                                                                                <Click Fn="AddOI" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button2" runat="server" Text="삭제" Icon="Delete">
                                                                            <Listeners>
                                                                                <Click Fn="RemoveOI" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button9" runat="server" Text="저장" Icon="Disk">
                                                                            <Listeners>
                                                                                <Click Handler="#{GridPanel5}.save();" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button10" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                            <Listeners>
                                                                                <Click Handler="#{GridPanel5}.reload();" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                      <%--  <ext:Button ID="Button14" runat="server" Text="선택추가" Icon="Add">
                                                                            <DirectEvents>
                                                                                <Click OnEvent="btnChoiceAdd_Click">
                                                                                </Click>
                                                                            </DirectEvents>
                                                                        </ext:Button>--%>
<%--                                                                        <ext:ComboBox ID="ComboBox5" runat="server">
                                                                        </ext:ComboBox>--%>
                                                                        <%--<ext:ToolbarFill ID="ToolbarFill5" runat="server" />
                                                            <ext:Button ID="Button27" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button28" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button29" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                                    </Items>
                                                                </ext:Toolbar>
                                                            </TopBar>
                                                            <Plugins>
                                                                <ext:GroupingSummary ID="GroupingSummary6" runat="server">
                                                                    <Calculations>
                                                                        <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                                    </Calculations>
                                                                </ext:GroupingSummary>
                                                            </Plugins>
                                                            <ColumnModel ID="ColumnModel5" runat="server">
                                                                <Columns>
                                                                    <ext:RowNumbererColumn />
                                                                    <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="DT" Header="DT" DataIndex="DT" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="SEQ_NO" Header="SEQ_NO" DataIndex="SEQ_NO" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="SUB_ITEM_CD" Header="SUB_ITEM_CD" DataIndex="SUB_ITEM_CD" Width="20"
                                                                        Hidden="true" />
                                                                    <ext:Column ColumnID="SUB_ITEM_NM" Header="SUB_ITEM_NM" DataIndex="SUB_ITEM_NM" Width="20"
                                                                        Hidden="true" />
                                                                    <ext:Column ColumnID="QTY2" Header="QTY2" DataIndex="QTY2" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="PROOF" Header="PROOF" DataIndex="PROOF" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="ITEM_NO" Header="ITEM_NO" DataIndex="ITEM_NO" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="CNT" Header="CNT" DataIndex="CNT" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center"
                                                                       >
                                                                        <Renderer Fn="cbxRenderEqp" />
                                                                        <Editor>
                                                                            <ext:ComboBox ID="ComboBox10" runat="server" StoreID="StrBiz" DisplayField="COMP_NM"
                                                                                ValueField="BIZ_REGNO" />
                                                                        </Editor>
                                                                        <EditorOptions>
                                                                            <Listeners>
                                                                                <BeforeStartEdit Fn="onBeforeStartEdit" />
                                                                            </Listeners>
                                                                        </EditorOptions>
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="ITEM_NM" Header="자재명" Width="120" DataIndex="ITEM_NM" Align="Center"
                                                                        >
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField8" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="SPEC" Header="규격" Width="120" DataIndex="SPEC" Align="Center"
                                                                        >
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField9" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="UNIT" Header="단위" Width="50" DataIndex="UNIT" Align="Center"
                                                                       >
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField10" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:GroupingSummaryColumn ColumnID="QTY" Header="수량" Width="100" DataIndex="QTY"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                        <Editor>
                                                                            <ext:NumberField ID="NumberField7" runat="server" />
                                                                        </Editor>
                                                                        <EditorOptions>
                                                                            <Listeners>
                                                                                <Complete Fn="eqpInputChange" />
                                                                            </Listeners>
                                                                        </EditorOptions>
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:GroupingSummaryColumn ColumnID="PRICE" Header="단가" Width="100" DataIndex="PRICE"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                        <Editor>
                                                                            <ext:NumberField ID="NumberField8" runat="server" />
                                                                        </Editor>
                                                                        <EditorOptions>
                                                                            <Listeners>
                                                                                <Complete Fn="eqpInputChange" />
                                                                            </Listeners>
                                                                        </EditorOptions>
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:GroupingSummaryColumn ColumnID="QTY_PRICE" Header="금액" Width="100" DataIndex="QTY_PRICE"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="80" DataIndex="VAT_CHK" Align="Right"
                                                                        Editable="true">
                                                                        <Editor>
                                                                            <ext:Checkbox ID="Checkbox5" runat="server" />
                                                                        </Editor>
                                                                    </ext:CheckColumn>
                                                                    <ext:GroupingSummaryColumn ColumnID="VAT_QTY_PRICE" Header="합계" Width="100" DataIndex="VAT_QTY_PRICE"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:Column ColumnID="BIGO" Header="비고" Width="250" DataIndex="BIGO" Align="Center">
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField11" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                </Columns>
                                                                <Listeners>
                                                                    <WidthChange Handler="updateTotal(#{GridPanel5});" />
                                                                </Listeners>
                                                            </ColumnModel>
                                                            <Listeners>
                                                                <%--<CellClick Fn="eqpIndex" />--%>
                                                                <ColumnResize Handler="updateTotal(#{GridPanel5});" />
                                                                <AfterRender Handler="updateTotal(#{GridPanel5});" Delay="100" />
                                                            </Listeners>
                                                            <SelectionModel>
                                                                <ext:RowSelectionModel ID="RowSelectionModel7" runat="server" SingleSelect="true">
                                                                    <Listeners>
                                                                        <RowSelect Handler="if (#{GridPanel6}.isVisible()) {#{Store8}.reload();}" Buffer="250" />
                                                                    </Listeners>
                                                                </ext:RowSelectionModel>
                                                            </SelectionModel>
                                                            <LoadMask ShowMask="true" />
                                                        </ext:GridPanel>
                                                    </ext:LayoutRow>
                                                    <ext:LayoutRow RowHeight="0.5">
                                                        <ext:GridPanel ID="GridPanel6" runat="server" Title="" AutoScroll="true" Collapsible="true">
                                                            <Store>
                                                                <ext:Store ID="Store8" runat="server" OnRefreshData="Store_RefreshData" OnSubmitData="Store_Submit"
                                                                    OnBeforeStoreChanged="Store_BeforeChanged" OnAfterStoreChanged="Store_AfterChanged"
                                                                    OnBeforeRecordInserted="Store_BeforeInserted" OnBeforeRecordUpdated="Store_BeforeUpdated"
                                                                    OnBeforeRecordDeleted="Store_BeforeDeleted" GroupField="PROJ_CD">
                                                                    <Reader>
                                                                        <ext:JsonReader IDProperty="none">
                                                                            <Fields>
                                                                                <ext:RecordField Name="PROJ_CD" />
                                                                                <ext:RecordField Name="DT" />
                                                                                <ext:RecordField Name="SEQ_NO" />
                                                                                <ext:RecordField Name="ITEM_NO" />
                                                                                <ext:RecordField Name="GUBUN" />
                                                                                <ext:RecordField Name="ITEM_CD" />
                                                                                <ext:RecordField Name="ITEM_NM" />
                                                                                <ext:RecordField Name="SUB_ITEM_CD" />
                                                                                <ext:RecordField Name="SUB_ITEM_NM" />
                                                                                <ext:RecordField Name="SPEC" />
                                                                                <ext:RecordField Name="QTY" DefaultValue="0" />
                                                                                <ext:RecordField Name="QTY2" DefaultValue="0" />
                                                                                <ext:RecordField Name="PRICE" DefaultValue="0" />
                                                                                <ext:RecordField Name="BIGO" />
                                                                                <ext:RecordField Name="VAT_CHK">
                                                                                    <Convert Handler="return value == 1;" />
                                                                                </ext:RecordField>
                                                                                <ext:RecordField Name="PROOF" />
                                                                                <ext:RecordField Name="BIZ_REGNO" />
                                                                                <ext:RecordField Name="ATTACT">
                                                                                </ext:RecordField>
                                                                                <ext:RecordField Name="REMAINDER" />
                                                                                <ext:RecordField Name="CD" />
                                                                                <ext:RecordField Name="UNIT" />
                                                                                <ext:RecordField Name="QTY_PRICE" DefaultValue="0" />
                                                                                <ext:RecordField Name="CNT" />
                                                                                <ext:RecordField Name="PAY" DefaultValue="0" />
                                                                                
                                                                            </Fields>
                                                                        </ext:JsonReader>
                                                                    </Reader>
                                                                    <BaseParams>
                                                                        <ext:Parameter Name="SEQ_NO" Value="Ext.getCmp('#{GridPanel5}') && #{GridPanel5}.getSelectionModel().hasSelection() ? #{GridPanel5}.getSelectionModel().getSelected().id : -1"
                                                                            Mode="Raw">
                                                                        </ext:Parameter>
                                                                    </BaseParams>
                                                                    <Listeners>
                                                                        <LoadException Handler="var e = e || {메시지: response.responseText}; alert('로드하지 못했습니다.: ' + e.message);" />
                                                                        <SaveException Handler="alert('저장에 실패했습니다.');" />
                                                                        <%--<CommitDone Handler="alert('저장되었습니다.');" />--%>
                                                                        <CommitFailed Handler="alert('저장에 실패한 이유 : '+msg)" />
                                                                    </Listeners>
                                                                </ext:Store>
                                                            </Store>
                                                            <View>
                                                                <ext:GroupingView ID="GroupingView4" runat="server" MarkDirty="true" ShowGroupName="false"
                                                                    EnableNoGroups="true" HideGroupedColumn="true" />
                                                            </View>
                                                            <TopBar>
                                                                <ext:Toolbar ID="Toolbar7" runat="server">
                                                                    <Items>
                                                                        <ext:Button ID="Button15" runat="server" Text="추가" Icon="Add">
                                                                            <Listeners>
                                                                                <Click Fn="AddOI2" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button16" runat="server" Text="삭제" Icon="Delete">
                                                                            <Listeners>
                                                                                <Click Fn="RemoveOI2" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button17" runat="server" Text="저장" Icon="Disk">
                                                                            <Listeners>
                                                                                <Click Handler="#{GridPanel6}.save();" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                        <ext:Button ID="Button18" runat="server" Text="재조회" Icon="ArrowRefresh">
                                                                            <Listeners>
                                                                                <Click Handler="#{GridPanel6}.reload();" />
                                                                            </Listeners>
                                                                        </ext:Button>
                                                                       <%-- <ext:Button ID="Button19" runat="server" Text="선택추가" Icon="Add">
                                                                            <DirectEvents>
                                                                                <Click OnEvent="btnChoiceAdd_Click">
                                                                                </Click>
                                                                            </DirectEvents>
                                                                        </ext:Button>
                                                                        <ext:ComboBox ID="ComboBox7" runat="server">
                                                                        </ext:ComboBox>
                                                                        <%--<ext:ToolbarFill ID="ToolbarFill5" runat="server" />--%>
                                                            <%--<ext:Button ID="Button27" runat="server" Text="To XML" Icon="PageCode">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xml');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button28" runat="server" Text="To Excel" Icon="PageExcel">
                                                                <Listeners>
                                                                    <Click Handler="exportData('xls');" />
                                                                </Listeners>
                                                            </ext:Button>
                                                            <ext:Button ID="Button29" runat="server" Text="To CSV" Icon="PageAttach">
                                                                <Listeners>
                                                                    <Click Handler="exportData('csv');" />
                                                                </Listeners>
                                                            </ext:Button>--%>
                                                                    </Items>
                                                                </ext:Toolbar>
                                                            </TopBar>
                                                            <Plugins>
                                                                <ext:GroupingSummary ID="GroupingSummary7" runat="server">
                                                                    <Calculations>
                                                                        <ext:JFunction Name="totalCost" Handler="return v + (record.data.Estimate * record.data.Rate);" />
                                                                    </Calculations>
                                                                </ext:GroupingSummary>
                                                            </Plugins>
                                                            <ColumnModel ID="ColumnModel6" runat="server">
                                                                <Columns>
                                                                    <ext:RowNumbererColumn />
                                                                    <ext:Column ColumnID="PROJ_CD" Header="PROJ_CD" DataIndex="PROJ_CD" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="DT" Header="DT" DataIndex="DT" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="SEQ_NO" Header="SEQ_NO" DataIndex="SEQ_NO" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="SUB_ITEM_CD" Header="SUB_ITEM_CD" DataIndex="SUB_ITEM_CD" Width="20"
                                                                        Hidden="true" />
                                                                    <ext:Column ColumnID="QTY2" Header="QTY2" DataIndex="QTY2" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="PROOF" Header="PROOF" DataIndex="PROOF" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="ITEM_NO" Header="ITEM_NO" DataIndex="ITEM_NO" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="CNT" Header="CNT" DataIndex="CNT" Width="20" Hidden="true" />
                                                                    <ext:Column ColumnID="BIZ_REGNO" Header="거래처" Width="120" DataIndex="BIZ_REGNO" Align="Center"
                                                                        Hidden="true">
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="SUB_ITEM_NM" Header="하부자재명" DataIndex="SUB_ITEM_NM" Width="150"
                                                                         >
                                                                         <Editor>
                                                                            <ext:TextField ID="TextField32" runat="server" />
                                                                        </Editor>
                                                                         </ext:Column>
                                                                    <ext:Column ColumnID="ITEM_NM" Header="자재명" Width="120" DataIndex="ITEM_NM" Align="Center"
                                                                        Hidden="true">
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="SPEC" Header="규격" Width="120" DataIndex="SPEC" Align="Center"
                                                                        >
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField6" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:Column ColumnID="UNIT" Header="단위" Width="50" DataIndex="UNIT" Align="Center"
                                                                       >
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField7" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:GroupingSummaryColumn ColumnID="QTY" Header="수량" Width="100" DataIndex="QTY"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                        <Editor>
                                                                            <ext:NumberField ID="NumberField5" runat="server" />
                                                                        </Editor>
                                                                        <EditorOptions>
                                                                            <Listeners>
                                                                                <Complete Fn="eqpInputChange" />
                                                                            </Listeners>
                                                                        </EditorOptions>
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:GroupingSummaryColumn ColumnID="PRICE" Header="단가" Width="100" DataIndex="PRICE"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                        <Editor>
                                                                            <ext:NumberField ID="NumberField6" runat="server" />
                                                                        </Editor>
                                                                        <EditorOptions>
                                                                            <Listeners>
                                                                                <Complete Fn="eqpInputChange" />
                                                                            </Listeners>
                                                                        </EditorOptions>
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:GroupingSummaryColumn ColumnID="QTY_PRICE" Header="금액" Width="100" DataIndex="QTY_PRICE"
                                                                        Align="Right" SummaryType="Sum">
                                                                        <Renderer Format="Number" FormatArgs="'0,0'" />
                                                                    </ext:GroupingSummaryColumn>
                                                                    <ext:Column ColumnID="BIGO" Header="비고" Width="250" DataIndex="BIGO" Align="Center">
                                                                        <Editor>
                                                                            <ext:TextField ID="TextField18" runat="server" />
                                                                        </Editor>
                                                                    </ext:Column>
                                                                    <ext:CheckColumn ColumnID="VAT_CHK" Header="부가세" Width="80" DataIndex="VAT_CHK" Align="Right"
                                                                        Editable="true" Hidden="true">
                                                                    </ext:CheckColumn>
                                                                </Columns>
                                                                <Listeners>
                                                                    <WidthChange Handler="updateTotal(#{GridPanel6});" />
                                                                </Listeners>
                                                            </ColumnModel>
                                                            <Listeners>
                                                                <%--<CellClick Fn="eqpIndex" />--%>
                                                                <ColumnResize Handler="updateTotal(#{GridPanel6});" />
                                                                <AfterRender Handler="updateTotal(#{GridPanel6});" Delay="100" />
                                                                <Expand Handler="#{Store8}.reload();" />
                                                            </Listeners>
                                                            <SelectionModel>
                                                                <ext:RowSelectionModel ID="RowSelectionModel8" runat="server" />
                                                            </SelectionModel>
                                                            <LoadMask ShowMask="true" Msg="로딩중입니다." />
                                                            <SaveMask ShowMask="true" Msg="저장중입니다." />
                                                        </ext:GridPanel>
                                                    </ext:LayoutRow>
                                                </Rows>
                                            </ext:RowLayout>
                                        </Items>
                                    </ext:Panel>
                                </Items>
                            </ext:TabPanel>
                        </Items>
                    </ext:FormPanel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    <!--로그인-->
    <ext:Window ID="Window10" runat="server" Closable="false" Resizable="false" Height="150"
        Icon="Lock" Title="로그인" Draggable="false" Width="350" Modal="true" Padding="5"
        Layout="Form">
        <Items>
            <ext:TextField ID="txtUsername" runat="server" FieldLabel="아이디" AllowBlank="false"
                BlankText="아이디를 입력해주십시오." Text="0000000000000" AnchorHorizontal="100%" />
            <ext:TextField ID="txtPassword" runat="server" InputType="Password" FieldLabel="비밀번호"
                AllowBlank="false" BlankText="비밀번호를 입력해주십시오." Text="0000" AnchorHorizontal="100%" />
        </Items>
        <Buttons>
            <ext:Button ID="btnLogin" runat="server" Text="로그인" Icon="Accept">
                <Listeners>
                    <Click Handler="
                            if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
                                Ext.Msg.alert('확인','아이디와 비밀번호를 확인해주십시오.');
                                // return false to prevent the btnLogin_Click Ajax Click event from firing.
                                return false; 
                            }" />
                </Listeners>
                <DirectEvents>
                    <Click OnEvent="btnLogin_Click">
                        <EventMask ShowMask="true" Msg="로그인중입니다..." MinDelay="50" />
                    </Click>
                </DirectEvents>
            </ext:Button>
            <%--<ext:Button ID="btnCancel" runat="server" Text="취소" Icon="Decline">
                <Listeners>
                    <Click Handler="#{Window10}.hide();#{lblMessage}.setText('로그인 취소됨')" />
                </Listeners>
            </ext:Button>--%>
        </Buttons>
        <Content>일반아이디 : 8112201111111  , PASS : 1234</Content>
    </ext:Window>
    <ext:Window ID="Window2" runat="server" Closable="false" Resizable="false" Height="400"
        Icon="ApplicationHome" Title="프로젝트 선택" Draggable="false" Width="350" Modal="true"
        Layout="Form">
        <Items>
            <ext:TreePanel ID="TreePanel1" runat="server" Width="330" Height="340" AutoScroll="true"
                Border="false">
                <Root>
                    <ext:AsyncTreeNode NodeID="0" Text="BEST" />
                </Root>
                <Listeners>
                    <BeforeLoad Fn="nodeLoad" />
                </Listeners>
                <DirectEvents>
                    <DblClick OnEvent="btnProjChoose_Click">
                        <ExtraParams>
                            <ext:Parameter Name="id" Value="#{TreePanel1}.getSelectionModel().getSelectedNode().id"
                                Mode="Raw" />
                        </ExtraParams>
                    </DblClick>
                </DirectEvents>
            </ext:TreePanel>
        </Items>
        <Buttons>
            <ext:Button ID="btnProjChoose" runat="server" Text="확인" Icon="Accept">
                <DirectEvents>
                    <Click OnEvent="btnProjChoose_Click">
                        <ExtraParams>
                            <ext:Parameter Name="id" Value="#{TreePanel1}.getSelectionModel().getSelectedNode().id"
                                Mode="Raw" />
                        </ExtraParams>
                        <%--<EventMask ShowMask="true" Msg="일자를 조회중입니다..." MinDelay="50" />--%>
                    </Click>
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="btnCancel" runat="server" Text="취소" Icon="Decline">
                <DirectEvents>
                    <Click OnEvent="btnProjChoose_Click">
                        <ExtraParams>
                            <ext:Parameter Name="id" Value="none" Mode="Value" />
                        </ExtraParams>
                    </Click>
                </DirectEvents>
                <%--<Listeners>
                    <Click Handler="#{Window2}.hide();" />
                </Listeners>--%>
            </ext:Button>
        </Buttons>
    </ext:Window>
    <ext:Window ID="Window3" runat="server" Width="350" Title="작성일자 선택" Icon="Date" AutoHeight="true"
        Closable="false" Padding="5" Layout="Form" Hidden="true" Modal="true">
        <Items>
            <ext:DateField ID="DateField1" runat="server" Vtype="daterange" FieldLabel="작성일자"
                AnchorHorizontal="100%" Format="yyyy-MM-dd">
            </ext:DateField>
        </Items>
        <Buttons>
            <ext:Button ID="Button21" runat="server" Text="확인" Icon="Accept">
                <Listeners>
                    <Click Handler="if (Ext.isEmpty(DateField1.getValue())) { alert('작성일자를 선택해주세요!!'); return false; }" />
                </Listeners>
                <DirectEvents>
                    <Click OnEvent="DT_NEW_Clicked">
                        <ExtraParams>
                            <ext:Parameter Name="DATE" Value="DateField1.getValue()" Mode="Raw" />
                        </ExtraParams>
                        <EventMask ShowMask="true" Msg="신규 일지를 만들고 있습니다..." MinDelay="50" />
                    </Click>
                </DirectEvents>
            </ext:Button>
            <ext:Button ID="btnProjCancel" runat="server" Text="취소" Icon="Decline">
                <Listeners>
                    <Click Handler="#{Window3}.hide();" />
                </Listeners>
            </ext:Button>
        </Buttons>
    </ext:Window>
    <ext:Window ID="Window4" runat="server" Closable="false" Resizable="false" Height="250"
        Icon="Lock" Title="공사일지 수정요청" Draggable="false" Width="550" Modal="true" Padding="5"
        Layout="Form">
        <Items>
            <ext:TextField ID="TextField22" runat="server" FieldLabel="작성일자" ReadOnly="true" />
            <ext:TextField ID="TextField23" runat="server" FieldLabel="요청자" ReadOnly="true" />
            <ext:TextField ID="TextField31" runat="server" FieldLabel="요청일시" ReadOnly="true"
                Width="150" />
            <ext:TextArea ID="TextField21" runat="server" FieldLabel="요청사유" AllowBlank="false"
                AutoScroll="true" BlankText="수정요청 사유를 입력해 주십시오." Text="" AnchorHorizontal="100%"
                Height="100" />
        </Items>
        <Buttons>
            <ext:Button ID="btnReqReDayWrite" runat="server" Text="확인" Icon="Accept">
                <DirectEvents>
                    <Click OnEvent="btnReqReDayWrite_Click">
                        <ExtraParams>
                            <ext:Parameter Name="Values" Value="Ext.encode(#{ListView1}.getRowsValues({ selectedOnly : true }))"
                                Mode="Raw" />
                        </ExtraParams>
                        <EventMask ShowMask="true" Msg="요청중입니다..." MinDelay="30" />
                    </Click>
                    
                </DirectEvents>
                
            </ext:Button>
            <ext:Button ID="Button37" runat="server" Text="취소" Icon="Decline">
                <Listeners>
                    <Click Handler="#{Window4}.hide();" />
                </Listeners>
                
            </ext:Button>
        </Buttons>
    </ext:Window>
    <ext:Hidden ID="hdnPROJ_CD" runat="server" />
    <ext:Hidden ID="hdnDT" runat="server" />
    <ext:Hidden ID="hdnJm" runat="server" />
    <ext:Hidden ID="hdnOISEQ_NO" runat="server" />
    </form>
</body>
</html>
